package com.xbai.goods.service;

import com.github.pagehelper.PageInfo;
import com.xbai.goods.pojo.StockBack;

import java.util.List;

/**
 * @desc StockBack业务层接口
 * @author jxbai
 * @date 2021/1/28
 */
public interface StockBackService {

    /**
     * StockBack条件+分页查询
     * @param stockBack {@link StockBack}
     * @param page 页码
     * @param size 页大小
     * @return {@link PageInfo<StockBack>} 分页结果
     */
    PageInfo<StockBack> findPage(StockBack stockBack, int page, int size);

    /**
     * StockBack分页查询
     * @param page 页码
     * @param size 页大小
     * @return {@link PageInfo<StockBack>}
     */
    PageInfo<StockBack> findPage(int page, int size);

    /**
     * StockBack条件查询
     * @param stockBack {@link StockBack}
     * @return {@link List < StockBack >}
     */
    List<StockBack> findList(StockBack stockBack);

    /**
     * 删除StockBack
     * @param id 主键id
     */
    void delete(String id);

    /**
     * 修改StockBack数据
     * @param stockBack {@link StockBack}
     */
    void update(StockBack stockBack);

    /**
     * 新增StockBack
     * @param stockBack {@link StockBack}
     */
    void add(StockBack stockBack);

    /**
     * 根据ID查询StockBack
     * @param id 主键id
     * @return {@link StockBack}
     */
     StockBack findById(String id);

    /**
     * 查询所有StockBack
     * @return {@link List < StockBack >}
     */
    List<StockBack> findAll();
}
